<template>
<div class="webHome">
  <h1>home</h1>
  <button @click="logout">没权限，点我注销登录</button>
  <!-- <router-link to="/cStorage/cWarehouseOut">点我跳到正确的位置</router-link> -->
</div>

</template>

<script>
export default {
  name:'webHome',
  methods:{
    async logout(){
      await this.$store.dispatch('LogOut')
      this.$router.push('/login')
    }
  }
}
</script>

<style>

</style>
